package Student;

import Student.Student;

import java.util.Random;

/**
 * @description: main方法
 * @author: rock
 * @create:
 **/
public class Main {
    public static void main(String[] args) {
        String sex;
        Student[] student = new Student[5];
        Random random = new Random();
        for (int i=0;i<=4;i++){
            if(random.nextInt(2)==0) {
                sex = "女";
            } else{
                sex="男";
            }

            random.nextInt(3);
            int n = random.nextInt(3);
            if (n==0) {
                student[i] = new English(181300413 + random.nextInt(20), sex,random.nextInt(6) + 15,"刘泽晋",   random.nextInt(51) + 50, random.nextInt(51) + 50, random.nextInt(51) + 50);
            }
            if (n==1) {
                student[i] = new Computer(181300413 + random.nextInt(20), sex,random.nextInt(6) + 15,"刘泽",  random.nextInt(51) + 50, random.nextInt(51) + 50, random.nextInt(51) + 50, random.nextInt(51) + 50);
            }
            if (n==2){
                student[i] = new literary(181300413 + random.nextInt(20), sex,random.nextInt(6) + 15,"刘静", random.nextInt(51) + 50, random.nextInt(51) + 50, random.nextInt(51) + 50, random.nextInt(51) + 50);

        }


        }
        for (Student s:student){
            s.show();
        }
    }
}
